package com.example.administrator.myapplication.Adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by Administrator on 2016/11/5.
 */
public class InShipinAdapter extends FragmentPagerAdapter{
    private List<Fragment> fragments;
    public InShipinAdapter(FragmentManager fm,List<Fragment> list) {
        super(fm);
        this.fragments=list;
    }

    @Override
    public Fragment getItem(int position) {
        return fragments.get(position);
    }

    @Override
    public int getCount() {
        return fragments.size();
    }
}
